package com.tunan.common;

public class ResultFormUtils {

	/**
	 * 获取成功结果
	 * @return
	 */
	public static Result getSuccess(){
		return new Result(true);
	}
	
	public static Result getSuccess(String message){
		return new Result(true, message);
	}
	
	/**
	 * 获取失败结果
	 * @return
	 */
	public static Result getFailure(){
		return new Result(false);
	}
	
	public static Result getFailure(String message){
		return new Result(false, message);
	}
}
